home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000165_icon-group-sender _Mon Jul 29 17:04:44 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 29 Jul 1996 11:17:39 MST
Message-Id: <31FCE11C.1C7E@tees.ac.uk>
Date: Mon, 29 Jul 1996 17:04:44 +0100
From: Hamish Lawson <H.Lawson@tees.ac.uk>
Organization: University of Teesside
X-Mailer: Mozilla 3.0b5aGold (Win95; I)
Mime-Version: 1.0
To: icon-group@cs.arizona.edu
Subject: Preserving success/failure across disjoint expressions
References: <9606221325.AA26435@ursus.cs.arizona.edu> <31D3FA40.1435@tees.ac.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
Suppose that I evaluate some expression, then later in the program I
want to evaluate some other expression but only of the earlier one
succeeded. What is the most idiomatic way of doing this in Icon? I've
done something along the lines below, but I'm just a little
uncomfortable with the arbitrariness of the assignment to succeeded.
e1 & succeeded := 1
...
if \succeeded then e2
| Hamish Lawson, School of Computing and Mathematics,
| University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA
| Tel: +44 1642 212695 Fax: +44 1642 342604
| E-mail: H.Lawson@tees.ac.uk